Don't leak the GDir in the iconview example
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Feb 2011 20:54:50 +0000 (15:54 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 17 Feb 2011 20:57:39 +0000 (15:57 -0500)
demos/gtk-demo/iconview.c

index 9984eab439dd2ff729a3b0375a1d23882ecde5b2..d94867d79a50e3bf14aafa92dc1ff1e08a0ec8c6 100644 (file)
@@ -105,6 +105,7 @@ fill_store (GtkListStore *store)
 
       name = g_dir_read_name (dir);
     }
+  g_dir_close (dir);
 }
 
 static gint